package com.situ.ssm.dao.impl;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.situ.ssm.dao.IStudentDao;
import com.situ.ssm.entity.Student;
import com.situ.ssm.util.MyBatisUtil;

public class StudentDaoImpl implements IStudentDao{
	private SqlSession sqlSession;
	
	public StudentDaoImpl() {
		sqlSession = MyBatisUtil.getSqlSession();
	}

	@Override
	public List<Student> selectAll() {
		List<Student> list = sqlSession.selectList("student.selectAll");
		return list;
	}

}
